body {
  font-family: 'Comic Sans MS', sans-serif; /* 轻松卡通风格字体 */
  text-align: center;
  justify-content: center;
  background-image: linear-gradient(135deg, #ffe4e1, #f0f8ff); /* 淡粉色到浅蓝色渐变 */
  color: #333333; /* 温和的字体颜色 */
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#lobby-content,
#game-page,
#voting-page,
#play-page,
#reveal-item-page,
#questions-page,
#scores-page {
  display: none;
}

#footer {
  bottom: 0;
  width: 100%;
  border-top: 2px solid #d1d8e0; /* 淡灰色边框 */
  background-color: #f8f9fa;
  padding: 15px 0;
  color: #6c757d;
  font-size: 1.2rem;
}

#title-heading {
  font-family: 'Comic Sans MS', sans-serif;
  font-size: 4rem;
  margin-top: 80px;
  color: #ff6347; /* 柔和的珊瑚色 */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

h1 {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.box {
  display: flex;
  flex-flow: column;
  height: 100%;
}

.box .row.header {
  flex: 0 1 auto;
}

.box .row.content {
  flex: 1 1 auto;
  border-bottom: 1px solid #d1d8e0; /* 淡灰色 */
}

.box .row.footer {
  flex: 0 1 40px;
  margin-bottom: 10px;
}

.main-content {
  margin-bottom: 30px;
}

#fill-space {
  height: 500px;
}

.button-class {
  background-image: linear-gradient(135deg, #f8d7da, #f0f8ff); /* 淡粉色到浅蓝色渐变 */
  border-radius: 30px;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  line-height: 30px;
  padding: 15px 30px;
  margin: 15px;
  user-select: none;
  border: 0;
  transition: all 0.3s ease, transform 0.3s ease-in-out;
}

.button-class:hover {
  background-image: linear-gradient(135deg, #f0f8ff, #f8d7da); /* 反转渐变色 */
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px) scale(1.05);
}

.button-class:active {
  transform: translateY(2px) scale(1);
}

.input-fields {
  width: 15rem;
  height: 45px;
  border-radius: 10px;
  border: 2px solid #d1d8e0; /* 浅灰色边框 */
  padding: 12px;
  margin-bottom: 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  background-color: #ffffff;
  color: #333;
  transition: border 0.3s, box-shadow 0.3s ease, background-color 0.3s;
}

.input-fields:focus {
  border-color: #ff6347; /* 珊瑚色 */
  box-shadow: 0px 4px 12px rgba(255, 99, 71, 0.5);
  background-color: #fff7e6;
}

#player-buttons {
  justify-content: center;
  padding-left: 0;
}

.player-list-class {
  padding-left: 0;
}

#how-to-play-button {
  background-color: transparent;
  border-radius: 25px;
  color: #ff6347; /* 珊瑚色 */
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  padding: 12px 25px;
  margin: 15px 20px;
  user-select: none;
  border: 2px solid #ff6347;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

#how-to-play-button:hover {
  background-color: #ff6347;
  color: #ffffff;
  transform: translateY(-3px);
}

#how-to-instructions {
  display: none;
}

#instructions-list {
  list-style-type: none;
  margin: 20px 0;
  padding: 0;
  font-size: 1.1rem;
  text-align: left;
}

#close-instructions-text {
  font-size: 0.8rem;
  color: #ff6347;
}

#chat-room {
  margin: 1rem;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

#chat-messages {
  margin: 0 -35px;
}

#instructions-list {
  margin: 0 15px;
}

/* Navbar */
#menuToggle {
  display: block;
  position: relative;
  top: 50px;
  z-index: 1;
  border-radius: 5px;
}

#menuToggle a {
  text-decoration: none;
  color: #ff6347;
  transition: color 0.3s ease;
}

#menuToggle .hamburger-input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  background: #ff6347;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.3s, background 0.3s, opacity 0.3s;
}

#menu {
  display: none;
  text-align: left;
  position: absolute;
  width: 95%;
  padding: 20px;
  border-radius: 15px;
  background-image: linear-gradient(135deg, #f8d7da, #f0f8ff); /* 淡粉色到浅蓝色渐变 */
  color: #ffffff;
  border: 2px solid #ffffff;
  list-style-type: none;
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  transition: transform 0.3s ease-in-out;
}

#menu li {
  padding: 12px 0;
  font-size: 1.2rem;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

#menu li:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

#menu li:active {
  background-color: rgba(255, 255, 255, 0.4);
}

@media only screen and (max-width: 900px) {
  #menu {
    width: 90%;
    margin: 10px 0;
  }
}

@media only screen and (max-width: 600px) {
  #menu {
    width: 92.5%;
    margin: 10px -7%;
  }
}

@media only screen and (max-width: 376px) {
  #menu {
    width: 88%;
    margin: 10px -7.3%;
  }
} 